Skip to content

Clarify mutation is allowed in high-scores#1195

Merged
SleeplessByte merged 2 commits intoexercism:masterfrom
adamzev:patch-1
Aug 5, 2019
Merged

Clarify mutation is allowed in high-scores#1195
SleeplessByte merged 2 commits intoexercism:masterfrom
adamzev:patch-1

Conversation

@adamzev
Copy link
Contributor

@adamzev adamzev commented Jul 29, 2019

Adding a test to check against mutating the list has been suggested and rejected because this is an introductory core exercise and immutability has not yet been introduced. However, all of the reasonable examples provided do not mutate the list so it is not clear to new mentors whether preserving the original list is required when deciding if they should accept a solution. I added clarification to the notes that mutating is acceptable but should be commented on.

See this thread for further discussion that led to this pull request.

Adding a test to check against mutating the list has been suggested and rejected because this is an introductory core exercise and immutability has not yet been introduced. However, all of the reasonable examples provided do not mutate the list so it is not clear to new mentors whether preserving the original list is required when deciding if they should accept a solution.
Copy link
Contributor

@yawpitch yawpitch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this note is a bit out of place without an example of the "reasonable and acceptable" solution that uses mutation.

@adamzev
Copy link
Contributor Author

adamzev commented Jul 30, 2019

I feel like this note is a bit out of place without an example of the "reasonable and acceptable" solution that uses mutation.

I was trying to keep it succinct but I see your point. I added examples of the most common mutations I've seen in two of the functions.

Copy link
Contributor

@yawpitch yawpitch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, with the examples I think this is ready to merge.

@yawpitch
Copy link
Contributor

yawpitch commented Aug 4, 2019

@adamzev thanks for your work on this.

@SleeplessByte SleeplessByte merged commit ebf906e into exercism:master Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants